﻿<UserControl x:Class="HomeWP.SWITCH"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="120" d:DesignWidth="450" 
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit">

    <Grid x:Name="LayoutRoot"
          Width="auto" Loaded="LayoutRoot_Loaded" Margin="16,0,0,0" Height="100">
        <StackPanel>
            <TextBlock x:Name="tb_Caption" Style="{StaticResource PhoneTextGroupHeaderStyle}" ></TextBlock>
            <toolkit:ToggleSwitch  Name="toggleSwitch1"   IsEnabled="False"  Style="{StaticResource toggleSwitchCaption}" Height="83" VerticalAlignment="Top"   >
                <TextBlock x:Name="ts_Content" Margin="0,-20,0,0" FontSize="28">?</TextBlock>
            </toolkit:ToggleSwitch>
            <toolkit:ContextMenuService.ContextMenu>
                <toolkit:ContextMenu IsZoomEnabled="false" Margin="0,-20,0,0">
                    <toolkit:MenuItem Header="Als Favorit hinzufügen" x:Name="mi_Favorit" Click="mi_Favorit_Click" />
                    <toolkit:MenuItem Header="Favorit entfernen" x:Name="mi_DelFavorit" Click="mi_DelFavorit_Click" />
                <!--    <toolkit:MenuItem Header="Auf Startseite anheften" x:Name="mi_Pin" Click="MenuItem2_Click" />-->
                </toolkit:ContextMenu>
            </toolkit:ContextMenuService.ContextMenu>
        </StackPanel>
    </Grid>
</UserControl>
